package com.ldp.designpatterns.review.create.factory.abstractfactory.factory;

import com.ldp.designpatterns.review.create.factory.abstractfactory.service.ColaDrink;
import com.ldp.designpatterns.review.create.factory.abstractfactory.service.Drink;
import com.ldp.designpatterns.review.create.factory.abstractfactory.service.PepperPizza;
import com.ldp.designpatterns.review.create.factory.abstractfactory.service.Pizza;

/**
 * @ClassName DrinkFactory
 * @Description 套餐1：可乐+胡椒披萨
 * @Author lindipei
 * @Date 2023/10/20 11:25
 */
public class ColaFactory implements AbstractFactory{
    @Override
    public Drink createDrink() {
       return new ColaDrink();
    }

    @Override
    public Pizza createPizza() {
        return new PepperPizza();
    }
}
